package com.bonuo.saas.service.impl;

import com.bonuo.saas.domain.TaskDelivery;
import com.bonuo.saas.mapper.TaskDeliveryMapper;
import com.bonuo.saas.service.TaskDeliveryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskDeliveryServiceImpl implements TaskDeliveryService {
    @Autowired
    private TaskDeliveryMapper taskDeliveryMapper;
    @Override
    public List<TaskDelivery> selectTaskDeliveryList(TaskDelivery taskDelivery) {
        return taskDeliveryMapper.selectTaskDeliveryList(taskDelivery);
    }

    @Override
    public int insertTaskDelivery(TaskDelivery taskDelivery) {
        return taskDeliveryMapper.insertTaskDelivery(taskDelivery);
    }

    @Override
    public int updateTaskDelivery(TaskDelivery taskDelivery) {
        return taskDeliveryMapper.updateTaskDelivery(taskDelivery);
    }

    @Override
    public int deleteTaskDeliveryById(Integer id) {
        return taskDeliveryMapper.deleteTaskDeliveryById(id);
    }
}
